All Questions
5 questions
3votes
1answer
134views
Scrape multiple twitch IRC chats
I've always struggled to create and sustainable, organizated, clean code. I tried to use a Factory method and it's working better now that I created another class. I know I should write documentation,...
6votes
2answers
521views
Simple factory pattern for cooking a pizza
I have developed a command line application which prompts the user to initially select an oven and then requests that they cook a pizza. The oven affects the pizzas cooking time. The pizzas ...
2votes
1answer
237views
Factory method that constructs objects that represents MySQL data types from query results
I'm writing a package that is designed to provide a convenient way to inspect the schema for a database. The goal is that I can use it for generator code to suit the schema. The complete code can be ...
1vote
1answer
369views
PHP design pattern factory input for products and quotes
I'm working on figuring out the best way to design this so that it's well organized and it seems like the factory design pattern makes sense. Updated: What I'm building: - Pricing calculator - ...
10votes
3answers
691views
Is this correct factory method pattern?
I know that there are many similar questions, but I don't understand most of those questions because I'm not sure if I know what a factory method pattern is. So, after reading many examples over the ...